<?xml version="1.0" encoding="utf-8"?>
<!-- Attributes on the root element define key factors in how the harness runs
   MapDataStructure -   Indicates the applicabe database. Must match the database name!
   TransactionType -    Only ADONET transactions are currently supported
   Namespace -          Anticipates that this namespace will be used for .NET output files via templates
   TransactionForRetrieve - Can be used by a template to include or exclude retrieves in transactions
   RetrievePattern -    The stored procedure fileaname for retrieve. Used by create metadata and can be used by templates.
   SetSelectPattern -   The stored procedure fileaname for retrieve. Used by create metadata and can be used by templates.
   CreatePattern -      The stored procedure fileaname for retrieve. Used by templates.
   DeletePattern -      The stored procedure fileaname for retrieve. Used by templates.
   UpdatePattern -      The stored procedure fileaname for retrieve. Used by templates.
   Generate -           Which of the CRUDS stored procedures to generate. 
   CollectionType -     Collections can be named based on plurals or collections. 
-->
<orm:MappingRoot xmlns:orm="http://kadgen.com/KADORM.xsd"
					  xmlns:kd="http://kadgen.com/Special.xsd"
					  MapDataStructure="GenDotNetSample"
	TransactionType="ADONET"
	Namespace="GenDotNet.Samples"
	TransactionForRetrieve="false"
	RetrievePattern="Select_[Object]"
	RetrieveChildrenPattern="SelectChildren_[FKey]_[Object]"
	RetrieveAlternatePattern="_By_[Criteria]"
	SetSelectPattern="SelectAll_[Object]"
	CreatePattern="Insert_[Object]"
	UpdatePattern="Update_[Object]"
	DeletePattern="Delete_[Object]"
	Generate="CRUDS"
	CollectionType="Plural">
  <!-- SQL Function replacements help the SQL translator. This is used for 
	      constraints and defaults -->
  <orm:SQLFunctionReplacement>
    <orm:SQLFunction Name="getdate" ReplaceWith="System.DateTime.Today" NETType="System.DateTime"/>
  </orm:SQLFunctionReplacement>

  <!-- Mapping definitions. -->
  <!-- To evaluate the result of these mapping, look at the Retrieve stored procedures -->
  <orm:Mapping Name="GenDotNet.Samples">
  </orm:Mapping>

</orm:MappingRoot>
